package com.gxa.uhome.service;

import com.gxa.uhome.pojo.StationMaster;
import com.gxa.uhome.pojo.vo.StationMasterVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: fanyouzhao
 * @date: 19:06 2021/6/7
 */
public interface StationMasterService {
    List<StationMasterVo> selectAll();

    List<StationMasterVo> selectByPage(Integer page, Integer size);

    List<StationMasterVo> selectByStationNameByPage(String stationName, Integer page, Integer size);

    List<StationMasterVo> selectLikeNameOrPhoneByPage(String content, Integer page, Integer size);

    Integer getCount();

    Integer getCountByStationName(String stationName);

    Integer getCountLikeNameOrPhone(String content);

    boolean update(StationMasterVo stationMasterVo);

    boolean del(Integer id);

    boolean add(StationMasterVo stationMasterVo);

    StationMasterVo selectByPhone(String phone);

    StationMasterVo selectById(Integer id);

    StationMasterVo login(String phone, String pwd);

    StationMaster selectMasterAndMenuById(Integer id);
}
